﻿using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;

namespace CustomMyFonts
{
    public class CustomFonts
    {
        //public static Func<Font> FuncGetFont;
        //public static Font[] GetFonts()
        //{
        //    return  Resources.LoadAll<Font>("/Fonts");
        //}

        public static Font curFont;

        public static Font GetFont()
        {
            if (curFont == null)
            {
                  curFont = Resources.Load<Font>("Fonts/CNR_ZH_CN");
            }
            return curFont;
        }

        public static int FontIndex = 1;

        public static int GetFontIndex()
        {
            return FontIndex;
        }
    }
}
